package com.carbon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carbon.domain.Goods;
import com.carbon.dto.WareInDto;
import com.carbon.service.StorageService;
import com.carbon.mapper.StorageMapper;
import com.carbon.domain.Storage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * 入库信息(Storage)表服务实现类
 *
 * @author WangFK
 * @since 2023-08-21 13:19:47
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {
    @Resource
    private StorageMapper storageMapper;
    @Override
    public ArrayList<Goods> getGoodListByStorageId(Long id) {
        return storageMapper.getGoodListByStorageId(id);

    }

    @Override
    public List<WareInDto> getGoodListByStorageIdList(List<Long> ids) {
        return storageMapper.getGoodListByStorageIdList(ids);
    }

    @Override
    public WareInDto getGoodListByStorageIdInfo(Long ids) {
        return storageMapper.getGoodListByStorageIdInfo(ids);
    }
}

